﻿<%@ WebHandler Language="C#" Class="Logout" %>

using System;
using System.Web;
using System.Web.SessionState;

using EHSubmit.Logic;

public class Logout : IHttpHandler, IRequiresSessionState
{
    
    public void ProcessRequest (HttpContext context) {
        // 删除Session中的用户
        context.Session.Remove(Constants.SESS_USER_KEY);
        // 页面跳转
        context.Response.Redirect("~/Login.aspx");
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}